# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=iwatch
pkgver=0.2.2
pkgrel=1
pkgdesc="realtime filesystem monitoring program written in Perl and uses Linux inotify"
url="https://iwatch.sourceforge.net/index.html"
arch="noarch"
license="GPL-2.0-only"
depends="perl perl-xml-simpleobject-libxml perl-event perl-linux-inotify2 perl-mail-sendmail"
subpackages="$pkgname-doc"
options=!check  #perl script with no test suite defined
source="$pkgname-$pkgver.tar.gz::https://downloads.sourceforge.net/project/iwatch/iwatch/$pkgver/iwatch-$pkgver.tgz"

package() {
	install -D -m 755 "$srcdir"/iwatch/iwatch -t "$pkgdir/usr/bin"
	install -D -m 644 "$srcdir"/iwatch/iwatch.xml -t "$pkgdir/etc"
	install -D -m 644 "$srcdir"/iwatch/iwatch.dtd -t "$pkgdir/etc"
	install -D -m 644 "$srcdir"/iwatch/README -t "$pkgdir-doc/usr/share/iwatch"
	install -D -m 644 "$srcdir"/iwatch/iwatch.xml.example -t "$pkgdir-doc/usr/share/iwatch"
}

sha512sums="
2aecf2f23e0768076c076cbd58040970d6a7fe05e7030ccae4f856b448be6dee8dfdd4180c0979783d56bb3ccd2edb420e19c65c20ca9222b2a63276b2d79232  iwatch-0.2.2.tar.gz
"
